<%--
  Created by IntelliJ IDEA.
  User: jack
  Date: 18/6/10
  Time: 下午8:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" import="indi.lddsdu.bean.Page" %>
<%@ page import="indi.lddsdu.bean.Item" %>
<html>
<head>
    <title>template test</title>
</head>
<body>
    <%  Page p = (Page) request.getAttribute("page");
        System.out.println(p.getItems().size());
        for (int i = 0; i < p.getShowPageSize();i ++) {
            Item item = p.getItems().get(i);
            item.setTitle("hello world");
    %>
    title : <%= item.getTitle()%> <br>
    content: <%= item.getContent()%> <br>
    link: <%= item.getLink()%><br>
    <%}%>

</body>
</html>